package com.hellobike.haxing.modules.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import com.hellobike.haxing.common.system.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author xuqin
 * @since 2020-01-03
 */
@Data
  @EqualsAndHashCode(callSuper = true)
  @Accessors(chain = true)
@TableName("t_user_coupon")
@ApiModel(value="UserCoupon对象", description="")
public class UserCoupon extends BaseEntity {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "用户id")
      private Long userId;

      @ApiModelProperty(value = "优惠券id")
      private Long couponId;

      @ApiModelProperty(value = "起效时间")
      private LocalDateTime validTime;

      @ApiModelProperty(value = "过期时间")
      private LocalDateTime expireTime;

      @ApiModelProperty(value = "状态：0-未使用、1-已使用、2-已过期")
      private Integer status;

      @ApiModelProperty(value = "用券订单号")
      private String orderNo;


}
